package com.hison.tandainbao.service;

import com.aliyuncs.exceptions.ClientException;
import com.baomidou.mybatisplus.extension.service.IService;
import com.hison.tandainbao.entiy.pojo.domain.User;
import com.hison.tandainbao.entiy.pojo.dto.LoginDto;
import com.hison.tandainbao.entiy.pojo.dto.ResetPassword;
import com.hison.tandainbao.entiy.pojo.dto.SignupDto;
import com.hison.tandainbao.entiy.pojo.dto.UpdateUser;
import com.hison.tandainbao.response.ResponseResult;


/**
 * @author hison
 * @description 针对表【tb_user】的数据库操作Service
 * @createDate 2024-01-24 22:14:49
 */
public interface UserService extends IService<User> {

    ResponseResult login(LoginDto login);

    ResponseResult signup(SignupDto signupDto);

    ResponseResult edit(UpdateUser updateUser);

    ResponseResult senCode(String phone);

    ResponseResult reset(ResetPassword resetPassword) throws ClientException;

    ResponseResult logOut(String token);

    ResponseResult sign();

    ResponseResult signCount();

    ResponseResult getAllInfo(Long id);

    ResponseResult follow(Integer userId);

    //管理员方法
    ResponseResult adminLogin(String phone, String password);

    ResponseResult AdminOutLogin();
}
